Skip to content

feat(editor): add paintSelectionAboveText to control selection paint … - #2750

Open
iznurrehmankhan wants to merge 1 commit into
singerdmx:masterfrom
iznurrehmankhan:fix-selection-paint-order
Open

feat(editor): add paintSelectionAboveText to control selection paint …#2750
iznurrehmankhan wants to merge 1 commit into
singerdmx:masterfrom
iznurrehmankhan:fix-selection-paint-order

Conversation

@iznurrehmankhan

Copy link
Copy Markdown

Summary

This PR adds a configuration option to control whether the selection highlight is painted above or below the text.

Background

PR #429 changed the paint order so the selection is rendered above the text. This fixed cases where the selection was hidden by text line background colors.

However, rendering the selection above the text can make the selected text difficult to read in some applications.

This PR keeps the current behavior as the default for backward compatibility while allowing applications to render the selection behind the text when desired.

Testing

  • Tested using the example application.
  • Verified both paint orders.
  • Existing behavior remains unchanged by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant